<php>foreach($rs as $k=>$v){</php>
<span><a href="/hotel-view-id-<php>echo $k;</php>" target="_blank"><php>echo $v;</php></a></span>
<php> }</php>